package com.lt.utils.ViewUtils;

/**
 * 快速点击
 * @author LiuTong
 */
public class ClickUtils {
    private static long lastTime;
    private static long maxTime = 500;
    private static long minTime = 0;
    public static  boolean isFastClick(){
        long time = System.currentTimeMillis();
        if( time - lastTime < maxTime && time - lastTime > minTime){
            return true;
        }
        lastTime = time;
        return false;
    }
}
